How to find open ports on a computer To find open ports on a computer, you can use netstat command line. To display all open ports, open DOS command, type netstat and press Enter. To list all listening ports, use netstat -an |find /i "listening"